<?php
$this->widget('zii.widgets.grid.CGridView',array(
	'dataProvider'=>$model->details_provider(),
	'columns'=>array(
		array(
       		'header'=>'Quantity',
       		'value'=>'($data->qty == 0 || empty($data->qty))?null:$data->qty." ".$data->qty_type',
        ),
        array(
        	'header'=>'Weight',
        	'value'=>'($data->wt == 0 || empty($data->wt))?null:$data->wt." ".$data->wt_type',
        ),
        array(
        	'header'=>'Length',
        	'value'=>'($data->length == 0 || empty($data->length))?null:$data->length',
        ),
        array(
        	'header'=>'Width',
        	'value'=>'($data->width == 0 || empty($data->width))?null:$data->width',
        ),
        array(
        	'header'=>'Height',
        	'value'=>'($data->height == 0 || empty($data->height))?null:$data->height',
        ),
        array(
        	'header'=>'M3',
        	'value'=>'($data->m3 == 0 || empty($data->m3))?null:$data->m3." ".$data->m3_type',
        ),
        	
	),
));
?>